﻿@using Demo.Model;
@using Pampa.MVC.Helpers;
@using Pampa.MVC.Models;
@using Pampa.MVC.Fluent.Common;

@{
    Layout = "~/Views/Shared/Layout.cshtml";
    ViewBag.Title = "Index";
}

<h2>Customers</h2>

<div>

    @(Html.Pampa().EntityGrid<Customer>()
                  .ClientId("CustomerGrid")
                  .PageSize(10)
                  .Config(new CustomerGridConfig()))

    @(Html.Pampa().BasicPager()
                  .GridClientId("CustomerGrid"))

    <br/>
    <a href="@Url.Action("New", "Customer")" class="button">New Customer</a>
    <br/>

</div>
